const ADD_ITEMNUM = 'ADD_ITEMNUM' //跳转下一题
const REMBER_ANSWER = 'REMBER_ANSWER' //记录答案
const INITALIZE_DATA = 'INITALIZE_DATA' //初始化数据

export default {
  [ADD_ITEMNUM](state, num) {
    state.itemNum += num;
  },
  [REMBER_ANSWER](state, id) {
    state.answerid.push(id);
  },
  [INITALIZE_DATA](state){
    state.itemNum = 1;
    state.answerid = [];
  }
}
